<template>
	<view class="container">
		<view class="top">
			<text>语言</text>
		</view>
		<view class="bottom">
			<button @click="toLoginPage">登录</button>
			<button @click="toRegisterPage">注册</button>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			}
		},
		methods: {
			toLoginPage() {
				uni.navigateTo({
					url: '/pages/login/index'
				})
			},
			toRegisterPage() {
				uni.navigateTo({
					url: '/pages/register/register'
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
.container {
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	background-image: url('../../static/img/login-back.jpg');
	background-repeat: no-repeat;
	background-size: cover;
	& > .top {
		padding: 20px 15px;
		display: flex;
		justify-content: flex-end;
		color: white;
	};
	& > .bottom {
		display: flex;
		justify-content: space-between;
		padding: 40px 15px;
		& > button {
			width: 110px;
			height: 45px;
			line-height: 45px;
			margin: 0;
			padding: 0;
			color: white;
			&:nth-child(1) {
				background-color: $basic-bg-color1;
			}
			&:nth-child(2) {
				background-color: $basic-bg-color2;
			}
		}
	}
}
</style>
